gbfputint32(4, fout);
gbfputint32(1, fout);
gbfputint32(0x100001, fout);
- gbfputuint32((const uint32_t)gpsbabel_time, fout);
+ gbfputuint32((uint32_t)gpsbabel_time, fout);
header_written = 0;
this_index = 0;
static void* fd;
static FILE* fl;
static char* port;
-static char* erase;
+static char* opt_erase;
enum wintec_gps_types {
UNKNOWN, WBT200, WBT201, WSG1000
/* Erase data? */
- if (*erase != '0') {
+ if (*opt_erase != '0') {
int f;
db(1, "Erasing data\n");
for (f = 27; f <= 31; f++) {
}
}
- if (*erase != '0') {
+ if (*opt_erase != '0') {
/* erase device */
do_simple("@AL,5,6", BUFSPEC(line_buf));
}
static QVector<arglist_t> wbt_sargs = {
{
- "erase", &erase, "Erase device data after download",
+ "erase", &opt_erase, "Erase device data after download",
"0", ARGTYPE_BOOL, ARG_NOMINMAX, nullptr
},
};